package com.danbay.cloud.lock.device.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.danbay.cloud.lock.device.api.dto.AccessReportDto;
import com.danbay.cloud.lock.device.api.dto.AliasDto;
import com.danbay.cloud.lock.device.entity.LockPrePassword;

import java.util.List;

/**
 * @author yangyanchen on 2017/12/19
 *         Copyright © 2016 －2017 旦倍科技
 */
public interface LockPrePasswordMapper extends BaseMapper<LockPrePassword> {

    List<LockPrePassword> findByDeviceId(AliasDto aliasDto);

    void delerteRecordsByDeviceInfo(Long deviceInfo);

    void deleteRecordsByDeviceId(AccessReportDto accessReportDto);
 }
